package com.yunweiweishi.xuhuanpaltform.yuhuan_app.comm.exception;


import com.yunweiweishi.xuhuanpaltform.yuhuan_app.comm.emun.BusinessExceptionEnum;
import lombok.Getter;


@Getter
public class BusinessException extends RuntimeException {
    private Integer code;

    public BusinessException(BusinessExceptionEnum businessExceptionEnum) {
        super(businessExceptionEnum.getMessage());
        this.code = businessExceptionEnum.getCode();
    }
}
